CMAKE_MINIMUM_REQUIRED( VERSION 2.6 )

PROJECT( YAGE )

SET( EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin )
SET( LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib )

CMAKE_MINIMUM_REQUIRED( VERSION 2.6 )

if( NOT CMAKE_BUILD_TYPE )
	set ( CMAKE_BUILD_TYPE Debug )
endif( NOT CMAKE_BUILD_TYPE )

ENABLE_TESTING()

SET( CMAKE_CXX_FLAGS "-Wall -Wextra -std=c++0x" )
SET( CMAKE_CXX_FLAGS_RELEASE "-s -O2 -DNDEBUG" )
SET( CMAKE_CXX_FLAGS_DEBUG "-g -DDEBUG" )

FIND_PACKAGE( Boost REQUIRED COMPONENTS signals regex thread system unit_test_framework )

IF( Boost_FOUND )
	INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIRS} )
	LINK_DIRECTORIES( ${Boost_LIBRARY_DIRS} )
ENDIF( Boost_FOUND )

INCLUDE_DIRECTORIES( "third-party/include" )

ADD_SUBDIRECTORY( src )
